Skip to content

Conversation

@google-labs-jules
Copy link

Jules PR


PR created automatically by Jules for task 5372817183098408706 started by @OTC15203

This commit introduces initial support for Etherscan API V2.

Key changes include:

- Updated the core `Client` in `etherscan/client.py`:
    - Base API URL changed to `https://api.etherscan.io/v2/api?`.
    - Added handling for the `chainid` parameter, making the client
      aware of different Ethereum chains. `Client.__init__` now accepts
      a `chain_id` (defaults to 1 for Mainnet).
- Adapted `etherscan/client.ropsten.py`:
    - The Ropsten client now internally uses the main V2 `Client`
      configured with `chain_id=3`.
    - A `DeprecationWarning` is issued to encourage you to migrate
      to the main client with the appropriate `chain_id`.
- Updated module-specific classes (`Account`, `Blocks`, `Contract`):
    - Their `__init__` methods now accept an optional `chain_id`
      parameter (defaulting to 1) and pass it to the base `Client`.
      This allows instantiation of these classes for specific chains.

Work on updating other module-specific classes (gas_tracker, logs, proxies, stats, tokens, transactions) is in progress. Further steps will involve completing these updates, reviewing all API endpoints against V2 documentation, and updating examples and tests.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@cr-gpt
Copy link

cr-gpt bot commented Nov 13, 2025

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant